package cn.operation.backend.enums;

public enum StatusEnum {

	NORMAL("10", "正常"), 
	DISABLE("20", "禁用"),
	DELETE("30", "删除");

	private final String value;
	private final String text;

	StatusEnum(String value, String text) {
		this.value = value;
		this.text = text;
	}

	/**
	 * Gets value.
	 *
	 * @return the value
	 */
	public String getValue() {
		return value;
	}

	/**
	 * Gets text.
	 *
	 * @return the text
	 */
	public String getText() {
		return text;
	}

	/**
	 * 
	 * @param value
	 * @return
	 */
	public static BaseAreaLevelEnum getByValue(String value) {
		for (BaseAreaLevelEnum temp : BaseAreaLevelEnum.values()) {
			if (temp.getValue() == value) {
				return temp;
			}
		}
		return null;
	}

}
